package com.hjb.service.gateway.fuiou;

import java.math.BigDecimal;

/**
 * @author   liuze
 * @date 创建时间：2017年1月6日 下午2:24:08 
 * @version 1.0  
 */
public class FyPayConstant {
	
	
	public static final String fy_pay_version		=  "1.00";
	
	public static final String payment		=  "AP01";
	
	public static final String withdraw_code	=  "payforreq";
	
	public static final String query_code	=  "qrytransreq";
	
	public static final String success    =  "000000";

	/**
	 * 
	 * @author liuze
	 *证件类型
	 */
	public static class CertType {
		/** 身份证 */
		public static final int	IDCARD		= 0;

	
	}
	
	
	public static class CardType{
		/** 身份证 */
		public static final int	debit		= 2;
		/** 身份证 */
		public static final int	credit		= 3;
	}
	
	public enum FyPayType {
		manage(0, "理财版"), normal(1, "普通版");
		Integer	v;

		String	des;

		FyPayType(Integer v, String des) {
			this.v = v;
			this.des = des;
		}

		public static String getCN(Integer v) {
			for (FyPayType type : values()) {
				if (type.v.equals(v)) {
					return type.des;
				}
			}
			return "";
		}

		public Integer getV() {
			return this.v;
		}

		public String getDes() {
			return this.des;
		}

	}
	
	
	/** 富友支付费率 */
	public static class ThirdPayFeeRate {
		public static BigDecimal	FUYOU_PAY_FEE		= new BigDecimal("0.0015");	// 富友充值费率

		public static BigDecimal	FUYOU_WITHDRAY_FEE	= new BigDecimal("2");		// 富友提现手续费
	}
	
	public static class transCode{
		/** pc快捷支付 */
		public static final String	PC_SHORTCUT_PAY		= "PY37";
		/** 网关支付（个人或企业） */
		public static final String	GATEWAY_PAY		= "PY22";
		/** 代付 */
		public static final String  AGENT_PAY  = "AP01";
		/** 退票 */
		public static final String  REFUND  = "TP01";	
	
	}
}
   